﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using LinkCard.Utils;

namespace LinkCard.CustomerView.template.JobSearching.Master
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt;
            dt = DataHelper.SelectTable("SELECT IndustryName, IndustryID FROM Industrial  ORDER BY IndustryName", false);
            ddlJobIndustry.DataSource = dt;
            ddlJobIndustry.DataTextField = "IndustryName";
            ddlJobIndustry.DataValueField = "IndustryID";
            ddlJobIndustry.DataBind();
            ddlJobIndustry.Items.Insert(0, new ListItem("Ngành nghề", "0"));
            //
            dt = DataHelper.SelectTable("SELECT CityName, CityID FROM Cities  ORDER BY CityName", false);
            ddlJobCity.DataSource = dt;
            ddlJobCity.DataTextField = "CityName";
            ddlJobCity.DataValueField = "CityID";
            ddlJobCity.DataBind();
            ddlJobCity.Items.Insert(0, new ListItem("Địa điểm", "0"));
        }
    }
}